/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ExpressCabinet {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '040040015';
    }

    get categoryName() {
        return '\u5feb\u9012\u67dc';
    }

    getCabinetSwitch(params) {
        return command({
            method: 'getCabinetSwitch',
            methodId: 'pZwpBgZm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGoodsStatus(params) {
        return command({
            method: 'getGoodsStatus',
            methodId: 'pUjL70x5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCabinetOpened(params) {
        return command({
            method: 'setCabinetOpened',
            methodId: 'ppbbd4Rl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGoodsStatus(params) {
        return command({
            method: 'setGoodsStatus',
            methodId: 'pes4SunK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ExpressCabinet;
